import request from '@/utils/request'
// 新增轮播图
export function addBanner(data) {
    return request({
        url: '/admin/article/banner',
        method: 'post',
        data
    })
}
// 轮播图分页
export function pagingBanner(data) {
    return request({
        url: '/admin/article/banner/paging',
        method: 'post',
        data
    })
}
// 轮播图列表
export function listBanner(data) {
	return request({
		url: '/admin/article/banner/list',
		method: 'post',
		data
	})
}
// 轮播图详情
export function getBannerDetail(id) {
    return request({
        url: '/admin/article/banner/' + id,
        method: 'get',
    })
}
// 修改轮播图
export function editBanner(data) {
    return request({
        url: '/admin/article/banner',
        method: 'put',
        data
    })
}
// 批量删除轮播图
export function delBanner(idList) {
	return request({
		url: '/admin/article/banner/' + idList,
		method: 'delete',
	})
}
// 上下架轮播图
export function publishBanner(data) {
	return request({
		url: '/admin/article/banner/publish',
		method: 'put',
		data
	})
}
